<template>
  <div>
    <el-input v-model="mobile" placeholder="请输入绑定手机号"></el-input>
    <el-button @click="submit">提交</el-button>
  </div>
</template>

<script>
export default {
    data(){
        return{
            mobile:''
        }
    },
    methods:{
        submit(){
            this.axios.post('bingmobile',{mobile:this.mobile,uid:this.$route.query.uid,token:this.$route.query.token})
            .then(res=>{
                localStorage.setItem('token',res.data.token)
                localStorage.setItem('token',res.data.userid)
                this.$router.push({'path':'/'})
                
            })
            
        }
    }

}
</script>

<style>

</style>